#!/bin/bash
#PBS -N QRBlockProfile
#PBS -l select=1:ncpus=1:mem=8gb:ngpus=1:gpu=geforce
#PBS -l walltime=01:30:00
#PBS -l cput=01:30:00
#PBS -q feed@eiger170
#PBS -j oe
#PBS -o blocktest.out

DATAFILE="block.data"
MTX="$HOME/Documents/mtx/norm_600.mtx"

echo Working directory is $PBS_O_WORKDIR
cd $PBS_O_WORKDIR

module load cuda/3.2
echo "" > $DATAFILE
for i in 1 `seq 2 2 200` ; do
	echo -en "$i\t" >> $DATAFILE
	./blocktest $MTX $i | tee -a $DATAFILE
done

